package com.itcast.service;

import com.itcast.domain.Good;
import java.util.List;

public interface GoodService {
    List<Good> findAll();

    int saveGood(Good good);

    Good findByName(String name);
    Good findById(String id);

    int update(Good good);

    int delete(String id);

    List<Good> findByNameLike(String name);

    String isOnline(List<String> list) throws Exception;

    String offLine(List<String> list) throws Exception;

    String batchDelete(List<String> list) throws Exception;
}
